<html>
<head>
	<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
	<meta http-equiv="pragma" content="no-cache" />
	<link rel="stylesheet" href="/css/style.css" type="text/css"/>
	<script type="text/javascript" src="/js/jquery.js"></script>
	<script type="text/javascript" src="/js/util.js"></script>
</head>
<script type="text/javascript">
//////////////////////////////////////////////////////////////////////
////  email = "wenpin.qian@happyelements.com"                     ////
////  team = "Athene"                                             ////
////  warnings = "This is generated page,Do Not Modify!";         ////
////  tips = "Opera & IE not supported|Chrome & Safari sugguested"////
//////////////////////////////////////////////////////////////////////
var PropertyOPEntitystr = window.dialogArguments;
var PropertyOPEntity = null;
if(PropertyOPEntitystr != undefined && PropertyOPEntitystr != "" && PropertyOPEntitystr != "{}") {
		PropertyOPEntity = s2json(PropertyOPEntitystr);
}
$(document).ready(function() {
	if(PropertyOPEntity != undefined) {
	
	$('#propertyType').val(PropertyOPEntity.propertyType);	
	$('#valueType').val(PropertyOPEntity.valueType);	
	$('#value').val(PropertyOPEntity.value);		
	}
	listselectors();
});
window.returnValue = PropertyOPEntitystr;

function listselectors() {
}

function submitPropertyOPEntity() {
	window.returnValue = json2s({
			
			propertyType:$('#propertyType').val(),			
			valueType:$('#valueType').val(),			
			value:xparseInt($('#value').val()),						
	});
	beforeWindowClose();
	window.close();
}

function beforeWindowClose() {
	if(window.returnCallback) {
		window.returnCallback(window.returnValue);
	}
	window.onbeforeunload = null;
	return true;
}

</script>
<body onunload="beforeWindowClose()">
	<div class="addarea">
	<table>
		<tbody>			
				<tr>				<td>
					<label for="propertyType">属性</label>
																	<select id="propertyType" name="propertyType">
							
								<option value="0">无</option>
							
								<option value="1">血</option>
							
								<option value="2">攻击</option>
							
								<option value="3">防御</option>
							
								<option value="4">重击</option>
							
								<option value="5">爆击</option>
							
								<option value="6">伤害减免值</option>
							
								<option value="7">伤害增加值</option>
							
								<option value="8">伤害减免百分比</option>
							
								<option value="9">伤害增加百分比</option>
							
								<option value="10">精力值</option>
													</select>
									</td>
							
								<td>
					<label for="valueType">值类型</label>
																	<select id="valueType" name="valueType">
							
								<option value="0">数值</option>
							
								<option value="1">百分比</option>
													</select>
									</td>
				</tr>			
				<tr>				<td>
					<label for="value">值</label>
					
						<input type="text" id="value" name="value" />
									</td>
									</tbody>
	</table>
	</div>
	<input type="button" onclick="submitPropertyOPEntity()" value="提交"/>
</body>